//
//  HCCollectionViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/5/31.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCCollectionViewCell.h"

#import "HCGoodsListModel.h"


@implementation HCCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(id)model {
    HCGoodsListData *data = (HCGoodsListData *)model;
    [self.IMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.img]]];
    self.title.text = [NSString stringWithFormat:@"%@",data.name];
    self.desc.text =  [NSString stringWithFormat:@"%@",data.price];
//    self.title.textColor = YBKRGBCOLOR(240, 96, 96, 1);
    self.lab.textColor = YBKRGBCOLOR(240, 96, 96, 1);
    self.lab2.textColor = self.lab.textColor;
    self.desc.textColor = self.lab.textColor;
}

@end
